package com.central.modules.sys.model;

import com.central.common.validator.group.AddGroup;
import com.central.common.validator.group.DefaultGroup;
import com.central.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@Data
public class AddSysUserRequest implements Serializable {

    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    private Long id;

    @NotBlank(message = "{mobile.require}", groups = AddGroup.class)
    private String mobile;

    @NotBlank(message = "{password.require}", groups = AddGroup.class)
    private String password;

    @NotBlank(message = "{realName.require}", groups = DefaultGroup.class)
    private String realName;

    @NotBlank(message = "{headUrl.require}", groups = DefaultGroup.class)
    private String headUrl;

    //"性别   0：男   1：女    2：保密", required = true)
    @NotNull(message = "{gender.require}", groups = DefaultGroup.class)
    private Integer gender;


    


}
